package guanqu.beans;

import java.math.BigDecimal;
import java.util.Calendar;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *@author cai
 *@date		2015-10-30
 *水闸信息表 
 *闸门和渠道之间多对一关系
 */

@Entity
@Table(name="t_IrrBAWaterGate")

public class IrrBAWaterGate {
	private String watergateCode;				//水闸编码
	private String 	canalCode;					//渠系编码
	private String watergateName;				//水闸名称
	private String watergateType;				//水闸类型
	private String watergateMET;				//闸门材质
	private String watergateLC;					//水闸位置
	private BigDecimal  watergateNUM;			//水闸孔数
	private BigDecimal  watergateHeight;		//闸高
	private BigDecimal   watergateWtdth;		//闸宽
	private BigDecimal   watergateQ;			//设计流量
	private BigDecimal   watergateMTP;			//启闭机型号
	private Character   watergateStatus;				//运行状态
	private String   engManCd;					//管理单位代码
	private String telephone;					//电话
	private  Calendar timeSign;					//时间戳
	private  String remark;						//备注
	
	private String stadiaCode; //对应的测站编码
	
	private BigDecimal designWaterLevel; // 设计水位
	
	
//	private IrrBTCanalDetail irrBTCanalDetail;	//闸门对应的渠道
	@Id
	public String getWatergateCode() {
		return watergateCode;
	}
	public void setWatergateCode(String watergateCode) {
		this.watergateCode = watergateCode;
	}
	public String getCanalCode() {
		return canalCode;
	}
	public void setCanalCode(String canalCode) {
		this.canalCode = canalCode;
	}
	public String getWatergateName() {
		return watergateName;
	}
	public void setWatergateName(String watergateName) {
		this.watergateName = watergateName;
	}
	public String getWatergateType() {
		return watergateType;
	}
	public void setWatergateType(String watergateType) {
		this.watergateType = watergateType;
	}
	public String getWatergateMET() {
		return watergateMET;
	}
	public void setWatergateMET(String watergateMET) {
		this.watergateMET = watergateMET;
	}
	public String getWatergateLC() {
		return watergateLC;
	}
	
	public void setWatergateLC(String watergateLC) {
		this.watergateLC = watergateLC;
	}
	public BigDecimal getWatergateNUM() {
		return watergateNUM;
	}
	public void setWatergateNUM(BigDecimal watergateNUM) {
		this.watergateNUM = watergateNUM;
	}
	public BigDecimal getWatergateHeight() {
		return watergateHeight;
	}
	public void setWatergateHeight(BigDecimal watergateHeight) {
		this.watergateHeight = watergateHeight;
	}
	
	@Column(name="watergateWidth")
	public BigDecimal getWatergateWtdth() {
		return watergateWtdth;
	}
	public void setWatergateWtdth(BigDecimal watergateWtdth) {
		this.watergateWtdth = watergateWtdth;
	}
	public BigDecimal getWatergateQ() {
		return watergateQ;
	}
	public void setWatergateQ(BigDecimal watergateQ) {
		this.watergateQ = watergateQ;
	}
	public BigDecimal getWatergateMTP() {
		return watergateMTP;
	}
	public void setWatergateMTP(BigDecimal watergateMTP) {
		this.watergateMTP = watergateMTP;
	}

	
	public Character getWatergateStatus() {
		return watergateStatus;
	}
	public void setWatergateStatus(Character watergateStatus) {
		this.watergateStatus = watergateStatus;
	}
	public String getEngManCd() {
		return engManCd;
	}
	public void setEngManCd(String engManCd) {
		this.engManCd = engManCd;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public Calendar getTimeSign() {
		return timeSign;
	}
	public void setTimeSign(Calendar timeSign) {
		this.timeSign = timeSign;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Transient
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
	public BigDecimal getDesignWaterLevel() {
		return designWaterLevel;
	}
	public void setDesignWaterLevel(BigDecimal designWaterLevel) {
		this.designWaterLevel = designWaterLevel;
	}

	
	
//	// 闸门和渠系多对一关系
//	@ManyToOne(cascade=CascadeType.REFRESH ,optional=false,fetch=FetchType.EAGER)
//	@JoinColumn(name="canalCode",referencedColumnName="canalCode",nullable=false,insertable=false,updatable=false)
//	public IrrBTCanalDetail getIrrBTCanalDetail() {
//		return irrBTCanalDetail;
//	}
//	public void setIrrBTCanalDetail(IrrBTCanalDetail irrBTCanalDetail) {
//		this.irrBTCanalDetail = irrBTCanalDetail;
//	}
	
	
	
	
	
	
}
